/***********************************************************************
 * Module:  Comment.java
 * Author:  HiWin10
 * Purpose: Defines the Class Comment
 ***********************************************************************/
package com.ccq.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="comment")
public class Comment {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	@ManyToOne
	@JoinColumn(name="blogTitleId")
	private BlogTitle blogTitle;

	@Column
	private String comment;

	@Column
	@Temporal(TemporalType.TIME)
	private Date createTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	

	public BlogTitle getBlogTitle() {
		return blogTitle;
	}

	public void setBlogTitle(BlogTitle blogTitle) {
		this.blogTitle = blogTitle;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}